package com.slg.android.manyanime.fragment;


import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.slg.android.manyanime.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class FoundFragment extends Fragment {


    public FoundFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View ret = inflater.inflate(R.layout.fragment_found, container, false);
        ImageView img = (ImageView) ret.findViewById(R.id.found_fragment_img_frame);
        AnimationDrawable animationDrawable = (AnimationDrawable) img.getBackground();
        animationDrawable.start();
        //设置循环播放
        animationDrawable.setOneShot(false);
        return ret;
    }


}
